np.array([range(i, i+3) for i in [2, 4, 6]])

29

>>> import numpy as np
>>> a = np.array([0, 1, 2, 3])
>>> a
array([0, 1, 2, 3])

Comments

Submit
0 Comments